package com.juyu.miliao.common.constant;

import java.time.LocalDate;

/**
 * @author xuanqicheng
 */
public class UploadPicAndVideoConstant {

    public static final long PIC_MAX_VALUE = 3;

    private static final String HOST_USER_UPLOAD_VIDEO_REDIS_KEY = "HOST_USER_UPLOAD_VIDEO:";

    private static final String HOST_USER_UPLOAD_PIC_REIDS_KEY = "HOST_USER_UPLOAD_PIC:";

    private static final String HOST_USER_UPLOAD_PIC_EXIST_USER_ID_REDIS_KEY = "HOST_USER_UPLOAD_PIC_EXIST_USERID:";

    public static String getHostUserUploadVideoRedisKey(long userId){
        return HOST_USER_UPLOAD_VIDEO_REDIS_KEY+ LocalDate.now().toString()+":"+userId;
    }

    public static String getHostUserUploadPicReidsKey(long userId){
        return HOST_USER_UPLOAD_PIC_REIDS_KEY+LocalDate.now().toString()+":"+userId;
    }

    public static  String getHostUserUploadPicExistUseridRedisKey(){
        return HOST_USER_UPLOAD_PIC_EXIST_USER_ID_REDIS_KEY+LocalDate.now().toString();
    }
}
